export default {
	pushClientId: "wan_store_push_clientid",
	tokenInfo: "wan_store_token_info",
	setStorageByKey(storageKey, data) {
		if (!storageKey) return false
		try {
			uni.setStorageSync(storageKey, data);
			return true;
		} catch (e) {
			// logUtils(`setStorageByKey error = `, e);
			return false;
		}
	},
	getStorageByKey(storageKey = '') {
		if (!storageKey) return ''
		try {
			let value = uni.getStorageSync(storageKey);
			if (value) {
				return value;
			} else {
				return ''
			}
		} catch (e) {
			// logUtils(`getStorageByKey error = `, e);
			return '';
		}
	},
	removeStorageSyncByKey(storageKey = '') {
		if (!storageKey) return false;
		uni.removeStorageSync(storageKey);
	}
}
